#ifndef MODIFYPATIENTUI_H
#define MODIFYPATIENTUI_H

#include <QWidget>
#include "BaseWidget.h"
#include "WidgetId.h"
#include "AppLog.h"
#include "MedicalInfo.h"

namespace Ui {
class ModifyPatientUi;
}

class ModifyPatientUi : public BaseWidget
{
    Q_OBJECT

public:
    explicit ModifyPatientUi(QWidget *parent = nullptr);
    ~ModifyPatientUi()override;
    void activate()override;
    void inactivate()override;

protected:
    void changeEvent(QEvent* e)override;

private slots:
    void on_gohome_clicked();

    void on_goback_clicked();

    void on_apply_clicked();

    void on_modify_clicked();

    void ModifyPatientUi_HintDialog_Slot(int type);

private:
    Ui::ModifyPatientUi *ui;
    PatientInfo g_patientInfo;
    int checkPatientInfo();
};

#endif // MODIFYPATIENTUI_H
